using System;
using System.Collections.Generic;
using System.Text;

namespace ClientTools.Library.Packager
{
    public class PackageManager
    {
        public Macros.MacroCollection GetMacros()
        {
            return new ClientTools.Library.Macros.MacroCollection(umbraco.cms.businesslogic.macro.Macro.GetAll());
        }

        public Templates.TemplateCollection GetTemplates()
        {
            return new ClientTools.Library.Templates.TemplateCollection(umbraco.cms.businesslogic.template.Template.getAll());
        }

        public DocumentTypes.DocumentTypeCollection GetDocumentTypes()
        {
            umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, 0, "GetDocumentTypes in PackageManager: ");
            umbraco.cms.businesslogic.web.DocumentType[] docTypes = umbraco.cms.businesslogic.web.DocumentType.GetAll;
            umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, 0, "Anzahl DocumentTypes: " + docTypes.Length);
            return new ClientTools.Library.DocumentTypes.DocumentTypeCollection(docTypes);
        }
    }
}
